package com.ishow.common.exception;

/**
 * 异常基类
 * 
 * @author chichi
 * @version 1.0
 */
public class BaseException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected String code;

	public BaseException() {

	}

	public BaseException(String code) {
		this.code = code;
	}

	public BaseException(String code, Throwable cause) {
		super(cause);
		this.code = code;
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	public String getCode() {
		return code;
	}

}
